var HOST = $('body').attr('data-host');

$(function () {

    $("button[name=save]").click(function () {

        //var params = $('.form-horizontal').serialize();

        $.ajax({
            type:"POST" ,
            url: HOST+"/cloud.postage/change_postage",
            data : $('.form-horizontal').serialize(),
            async :false,
            success : function (data) {
                if(data.info == 1){
                    toastr.success('修改成功')
                }else {
                    toastr.error('发生异常');
                }

            }
        });

        location.reload();
    });

});